﻿$def with (res, page, pages)

$for i in res:
    
    <SPAN class=wenzhang>
    <H2><P class=title><A title=$i[1] href="/detail/$i[0]">$i[1] </A></P></H2>
    <P class=zhaiyao>$i[3]
    ...... <A href="/detail/$i[0]" rel=nofollow>阅读全文 »</A></P>
    <P class=pinglun>$i[2]</P></SPAN>
<SPAN class=pagination>
<DIV class=pagination>
$for i in range(1,pages+1):
    $if i == int(page):<SPAN class=current>$i</SPAN>
    $else:<A class=inactive href="/page/$i">$i</A>
</DIV></SPAN></DIV>
<H2 class=sidetitl>&nbsp;</H2>
</DIV>
</DIV>
<DIV style="CLEAR: both"></DIV>